function Bonus () {
this.bonus = true;
//true = bonus, false = malus
this.type = 0;
//0 = elec, 1 = magne, 2= meca
if (this.bonus==true) { = loadImg ('Graph/BonusBckgr.png');}
if (this.bonus==false) { = loadImg('Graph/MalusBckgr.png')}
}

Bonus.prototype.setElectric= function (){

this.type = 0;
this.img = loadImg ('Graph/Elec.png');

}

Bonus.prototype.setMechanic= function (){

this.type = 2;
this.img = loadImg ('Graph/Mech.png');

}

Bonus.prototype.setMagnetic= function (){

this.type = 1;
this.img = loadImg ('Graph/Mag.png');

}